package com.dunshan.deeptest.controller;

import com.dunshan.deeptest.mapper.ModuleManagementMapper;
import com.dunshan.deeptest.pojo.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author .dunshan
 * @program: dunshan-pef
 * @description: 模块管理api
 * @date 2021-12-30 11:23:01
 */
@RestController
public class ModuleManagementController {

    @Autowired
    ModuleManagementMapper moduleManagementMapper;

    @GetMapping("/list")
    public Result list() {
        return Result.buildSuccess(moduleManagementMapper.selectList(null));
    }

}
